projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52304fe
)
video: Make autoplay work
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 13 Sep 2020 05:56:56 +0000
(
01:56
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 13 Sep 2020 05:56:56 +0000
(
01:56
-0400)
We were setting things up in the wrong order, so
autoplay had no effect when you using gtk_video_set_file().
gtk/gtkvideo.c
patch
|
blob
|
history
diff --git
a/gtk/gtkvideo.c
b/gtk/gtkvideo.c
index 70e741fdc14174160178627218ad8fdb80d688a0..d7c934f4e7c8042668e48f4ed4a45a9d8e75610f 100644
(file)
--- a/
gtk/gtkvideo.c
+++ b/
gtk/gtkvideo.c
@@
-654,9
+654,9
@@
gtk_video_set_file (GtkVideo *self,
stream = gtk_media_file_new ();
- gtk_video_set_media_stream (self, stream);
if (gtk_widget_get_realized (GTK_WIDGET (self)))
gtk_media_file_set_file (GTK_MEDIA_FILE (stream), file);
+ gtk_video_set_media_stream (self, stream);
g_object_unref (stream);
}